package entity;

/**
 * @author SuTing
 * @version 1.0
 * @date 2021/11/11 11:50
 */
public class Chinese implements Person{

    private String  name;
    private int age ;
    private String sex ;
    private entity.Food foods;//具体食物

    public Chinese() {
    }

    public Chinese(String name, int age, String sex, entity.Food foods) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.foods = foods;
    }

    @Override
    public String toString() {
        return "Chinese{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", foods=" + foods +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public entity.Food getFoods() {
        return foods;
    }

    public void setFoods(entity.Food foods) {
        this.foods = foods;
    }

    @Override
    public void eat() {
        System.out.println("今天吃什么呢");
    }
}
